package com.dianshang.service.order;

import com.dianshang.entity.PageResult;
import com.dianshang.pojo.order.ReturnOrderDetail;
import com.dianshang.pojo.order.ReturnOrder;

import java.util.List;
import java.util.Map;

public interface ReturnOrderService {

     List<ReturnOrder> findAll();

     PageResult<ReturnOrder> findPage(Integer page, Integer size);

     List<ReturnOrder> findList(Map<String, Object> searchMap);

     PageResult<ReturnOrder> findPage(Map<String, Object> searchMap, Integer page, Integer size);

     ReturnOrderDetail findById(Integer id);

     void add(ReturnOrder returnOrder);

     void update(ReturnOrder returnOrder);

     void delete(Integer id);

     void agreeRefund(String id);

     void rejectRefund(String id);

}